.class public Lcom/example/m6wmr/AddressActivity;
.super Landroid/app/Activity;
.source "AddressActivity.java"


# static fields
.field public static address:Lcom/example/m6wmr/AddressActivity;


# instance fields
.field addresslaout:Landroid/widget/LinearLayout;

.field private addressls:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/AddressBean;",
            ">;"
        }
    .end annotation
.end field

.field private areaid:Ljava/lang/String;

.field private cursor:Landroid/database/Cursor;

.field private cv:Landroid/content/ContentValues;

.field private db:Landroid/database/sqlite/SQLiteDatabase;

.field private editid:I

.field private goint:I

.field private goodsstr:Ljava/lang/String;

.field public h:Landroid/os/Handler;

.field private helper:Ldbclass/DBOpenHelper;

.field private loaddata:Z

.field m:Lmyapp/MyApp;

.field private mHandler:Landroid/os/Handler;

.field private mWebView:Landroid/webkit/WebView;

.field private mcontext:Landroid/content/Context;

.field pd:Landroid/app/ProgressDialog;

.field private pingstr:Ljava/lang/String;

.field private shopid:Ljava/lang/String;

.field shoplayout:Landroid/widget/LinearLayout;

.field private shopstr:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    const/4 v1, 0x0

    .line 62
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 63
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/AddressActivity;->areaid:Ljava/lang/String;

    .line 64
    iput-object v1, p0, Lcom/example/m6wmr/AddressActivity;->m:Lmyapp/MyApp;

    .line 67
    iput-object v1, p0, Lcom/example/m6wmr/AddressActivity;->h:Landroid/os/Handler;

    .line 69
    iput-object v1, p0, Lcom/example/m6wmr/AddressActivity;->shoplayout:Landroid/widget/LinearLayout;

    .line 70
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/example/m6wmr/AddressActivity;->mHandler:Landroid/os/Handler;

    .line 71
    iput-object v1, p0, Lcom/example/m6wmr/AddressActivity;->pd:Landroid/app/ProgressDialog;

    .line 72
    iput-boolean v2, p0, Lcom/example/m6wmr/AddressActivity;->loaddata:Z

    .line 73
    const-string v0, "0"

    iput-object v0, p0, Lcom/example/m6wmr/AddressActivity;->shopid:Ljava/lang/String;

    .line 74
    iput-object v1, p0, Lcom/example/m6wmr/AddressActivity;->goodsstr:Ljava/lang/String;

    .line 77
    iput-object v1, p0, Lcom/example/m6wmr/AddressActivity;->cursor:Landroid/database/Cursor;

    .line 80
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/AddressActivity;->shopstr:Ljava/lang/String;

    .line 81
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/AddressActivity;->pingstr:Ljava/lang/String;

    .line 82
    iput v2, p0, Lcom/example/m6wmr/AddressActivity;->goint:I

    .line 84
    iput v2, p0, Lcom/example/m6wmr/AddressActivity;->editid:I

    .line 62
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6wmr/AddressActivity;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 66
    iget-object v0, p0, Lcom/example/m6wmr/AddressActivity;->mcontext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$1(Lcom/example/m6wmr/AddressActivity;I)V
    .locals 0

    .prologue
    .line 84
    iput p1, p0, Lcom/example/m6wmr/AddressActivity;->editid:I

    return-void
.end method

.method static synthetic access$10(Lcom/example/m6wmr/AddressActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 80
    iget-object v0, p0, Lcom/example/m6wmr/AddressActivity;->shopstr:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$11(Lcom/example/m6wmr/AddressActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 81
    iget-object v0, p0, Lcom/example/m6wmr/AddressActivity;->pingstr:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$12(Lcom/example/m6wmr/AddressActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 73
    iget-object v0, p0, Lcom/example/m6wmr/AddressActivity;->shopid:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$13(Lcom/example/m6wmr/AddressActivity;)I
    .locals 1

    .prologue
    .line 82
    iget v0, p0, Lcom/example/m6wmr/AddressActivity;->goint:I

    return v0
.end method

.method static synthetic access$2(Lcom/example/m6wmr/AddressActivity;)Ldbclass/DBOpenHelper;
    .locals 1

    .prologue
    .line 76
    iget-object v0, p0, Lcom/example/m6wmr/AddressActivity;->helper:Ldbclass/DBOpenHelper;

    return-object v0
.end method

.method static synthetic access$3(Lcom/example/m6wmr/AddressActivity;Landroid/database/Cursor;)V
    .locals 0

    .prologue
    .line 77
    iput-object p1, p0, Lcom/example/m6wmr/AddressActivity;->cursor:Landroid/database/Cursor;

    return-void
.end method

.method static synthetic access$4(Lcom/example/m6wmr/AddressActivity;)Landroid/database/Cursor;
    .locals 1

    .prologue
    .line 77
    iget-object v0, p0, Lcom/example/m6wmr/AddressActivity;->cursor:Landroid/database/Cursor;

    return-object v0
.end method

.method static synthetic access$5(Lcom/example/m6wmr/AddressActivity;)Landroid/database/sqlite/SQLiteDatabase;
    .locals 1

    .prologue
    .line 78
    iget-object v0, p0, Lcom/example/m6wmr/AddressActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    return-object v0
.end method

.method static synthetic access$6(Lcom/example/m6wmr/AddressActivity;)I
    .locals 1

    .prologue
    .line 84
    iget v0, p0, Lcom/example/m6wmr/AddressActivity;->editid:I

    return v0
.end method

.method static synthetic access$7(Lcom/example/m6wmr/AddressActivity;)Landroid/content/ContentValues;
    .locals 1

    .prologue
    .line 79
    iget-object v0, p0, Lcom/example/m6wmr/AddressActivity;->cv:Landroid/content/ContentValues;

    return-object v0
.end method

.method static synthetic access$8(Lcom/example/m6wmr/AddressActivity;I)V
    .locals 0

    .prologue
    .line 82
    iput p1, p0, Lcom/example/m6wmr/AddressActivity;->goint:I

    return-void
.end method

.method static synthetic access$9(Lcom/example/m6wmr/AddressActivity;)Landroid/webkit/WebView;
    .locals 1

    .prologue
    .line 68
    iget-object v0, p0, Lcom/example/m6wmr/AddressActivity;->mWebView:Landroid/webkit/WebView;

    return-object v0
.end method


# virtual methods
.method public bindbtn()V
    .locals 3

    .prologue
    .line 351
    const v2, 0x7f0c0001

    invoke-virtual {p0, v2}, Lcom/example/m6wmr/AddressActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    .line 352
    .local v0, "closebtn":Landroid/widget/ImageView;
    new-instance v2, Lcom/example/m6wmr/AddressActivity$4;

    invoke-direct {v2, p0}, Lcom/example/m6wmr/AddressActivity$4;-><init>(Lcom/example/m6wmr/AddressActivity;)V

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 365
    const v2, 0x7f0c0016

    invoke-virtual {p0, v2}, Lcom/example/m6wmr/AddressActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/example/location/BottomMenu;

    .line 373
    .local v1, "menu":Lcom/example/location/BottomMenu;
    const-string v2, "person"

    invoke-virtual {v1, v2}, Lcom/example/location/BottomMenu;->SetOn(Ljava/lang/String;)V

    .line 375
    return-void
.end method

.method public bingdata()V
    .locals 10

    .prologue
    const/4 v9, 0x0

    .line 284
    iget-object v6, p0, Lcom/example/m6wmr/AddressActivity;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v6}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v6

    .line 285
    const-string v7, "select * from address"

    .line 284
    invoke-virtual {v6, v7, v9}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v6

    iput-object v6, p0, Lcom/example/m6wmr/AddressActivity;->cursor:Landroid/database/Cursor;

    .line 287
    const/4 v1, 0x0

    .line 289
    .local v1, "goodscount":I
    iget-object v6, p0, Lcom/example/m6wmr/AddressActivity;->addresslaout:Landroid/widget/LinearLayout;

    invoke-virtual {v6}, Landroid/widget/LinearLayout;->removeAllViews()V

    .line 291
    iget-object v6, p0, Lcom/example/m6wmr/AddressActivity;->cursor:Landroid/database/Cursor;

    if-eqz v6, :cond_0

    .line 293
    :goto_0
    iget-object v6, p0, Lcom/example/m6wmr/AddressActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v6}, Landroid/database/Cursor;->moveToNext()Z

    move-result v6

    if-nez v6, :cond_1

    .line 327
    :cond_0
    iget-object v6, p0, Lcom/example/m6wmr/AddressActivity;->mcontext:Landroid/content/Context;

    const v7, 0x7f03004f

    invoke-static {v6, v7, v9}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v4

    .line 328
    .local v4, "tempview":Landroid/view/View;
    const v6, 0x7f0c0218

    invoke-virtual {v4, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/LinearLayout;

    .line 331
    .local v5, "toadd":Landroid/widget/LinearLayout;
    new-instance v6, Lcom/example/m6wmr/AddressActivity$3;

    invoke-direct {v6, p0}, Lcom/example/m6wmr/AddressActivity$3;-><init>(Lcom/example/m6wmr/AddressActivity;)V

    invoke-virtual {v5, v6}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 346
    iget-object v6, p0, Lcom/example/m6wmr/AddressActivity;->addresslaout:Landroid/widget/LinearLayout;

    invoke-virtual {v6, v4}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 348
    return-void

    .line 295
    .end local v4    # "tempview":Landroid/view/View;
    .end local v5    # "toadd":Landroid/widget/LinearLayout;
    :cond_1
    iget-object v6, p0, Lcom/example/m6wmr/AddressActivity;->mcontext:Landroid/content/Context;

    const v7, 0x7f030050

    invoke-static {v6, v7, v9}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v4

    .line 296
    .restart local v4    # "tempview":Landroid/view/View;
    iget-object v6, p0, Lcom/example/m6wmr/AddressActivity;->cursor:Landroid/database/Cursor;

    iget-object v7, p0, Lcom/example/m6wmr/AddressActivity;->cursor:Landroid/database/Cursor;

    const-string v8, "id"

    invoke-interface {v7, v8}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v7

    invoke-interface {v6, v7}, Landroid/database/Cursor;->getInt(I)I

    move-result v6

    invoke-virtual {v4, v6}, Landroid/view/View;->setId(I)V

    .line 297
    const v6, 0x7f0c0224

    invoke-virtual {v4, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    .line 298
    .local v3, "phone":Landroid/widget/TextView;
    iget-object v6, p0, Lcom/example/m6wmr/AddressActivity;->cursor:Landroid/database/Cursor;

    iget-object v7, p0, Lcom/example/m6wmr/AddressActivity;->cursor:Landroid/database/Cursor;

    const-string v8, "phone"

    invoke-interface {v7, v8}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v7

    invoke-interface {v6, v7}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v3, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 299
    const v6, 0x7f0c00d6

    invoke-virtual {v4, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 300
    .local v0, "addressname":Landroid/widget/TextView;
    iget-object v6, p0, Lcom/example/m6wmr/AddressActivity;->cursor:Landroid/database/Cursor;

    iget-object v7, p0, Lcom/example/m6wmr/AddressActivity;->cursor:Landroid/database/Cursor;

    const-string v8, "address"

    invoke-interface {v7, v8}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v7

    invoke-interface {v6, v7}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v0, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 302
    const v6, 0x7f0c000a

    invoke-virtual {v4, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageView;

    .line 303
    .local v2, "imageView1":Landroid/widget/ImageView;
    iget-object v6, p0, Lcom/example/m6wmr/AddressActivity;->cursor:Landroid/database/Cursor;

    iget-object v7, p0, Lcom/example/m6wmr/AddressActivity;->cursor:Landroid/database/Cursor;

    const-string v8, "is_default"

    invoke-interface {v7, v8}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v7

    invoke-interface {v6, v7}, Landroid/database/Cursor;->getInt(I)I

    move-result v6

    const/4 v7, 0x1

    if-ne v6, v7, :cond_2

    .line 304
    const/4 v6, 0x0

    invoke-virtual {v2, v6}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 307
    :cond_2
    iget-object v6, p0, Lcom/example/m6wmr/AddressActivity;->addresslaout:Landroid/widget/LinearLayout;

    invoke-virtual {v6, v4}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 308
    new-instance v6, Lcom/example/m6wmr/AddressActivity$2;

    invoke-direct {v6, p0}, Lcom/example/m6wmr/AddressActivity$2;-><init>(Lcom/example/m6wmr/AddressActivity;)V

    invoke-virtual {v4, v6}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto/16 :goto_0
.end method

.method public getDataCount(Ljava/lang/String;)J
    .locals 3
    .param p1, "tableName"    # Ljava/lang/String;

    .prologue
    .line 276
    iget-object v0, p0, Lcom/example/m6wmr/AddressActivity;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v0}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v0

    .line 277
    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "select count(*) from "

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    .line 276
    invoke-virtual {v0, v1, v2}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v0

    iput-object v0, p0, Lcom/example/m6wmr/AddressActivity;->cursor:Landroid/database/Cursor;

    .line 278
    iget-object v0, p0, Lcom/example/m6wmr/AddressActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v0}, Landroid/database/Cursor;->moveToFirst()Z

    .line 280
    iget-object v0, p0, Lcom/example/m6wmr/AddressActivity;->cursor:Landroid/database/Cursor;

    const/4 v1, 0x0

    invoke-interface {v0, v1}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v0

    return-wide v0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 7
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 89
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 90
    const v5, 0x7f030004

    invoke-virtual {p0, v5}, Lcom/example/m6wmr/AddressActivity;->setContentView(I)V

    .line 92
    invoke-virtual {p0}, Lcom/example/m6wmr/AddressActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v5

    check-cast v5, Lmyapp/MyApp;

    iput-object v5, p0, Lcom/example/m6wmr/AddressActivity;->m:Lmyapp/MyApp;

    .line 93
    iget-object v5, p0, Lcom/example/m6wmr/AddressActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v5}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v0

    .line 94
    .local v0, "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 95
    iput-object p0, p0, Lcom/example/m6wmr/AddressActivity;->mcontext:Landroid/content/Context;

    .line 96
    sput-object p0, Lcom/example/m6wmr/AddressActivity;->address:Lcom/example/m6wmr/AddressActivity;

    .line 97
    new-instance v5, Ljava/util/ArrayList;

    invoke-direct {v5}, Ljava/util/ArrayList;-><init>()V

    iput-object v5, p0, Lcom/example/m6wmr/AddressActivity;->addressls:Ljava/util/List;

    .line 99
    invoke-virtual {p0}, Lcom/example/m6wmr/AddressActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    .line 100
    .local v1, "intent":Landroid/content/Intent;
    const-string v5, "shopid"

    invoke-virtual {v1, v5}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    iput-object v5, p0, Lcom/example/m6wmr/AddressActivity;->shopid:Ljava/lang/String;

    .line 101
    const/high16 v5, 0x7f0c0000

    invoke-virtual {p0, v5}, Lcom/example/m6wmr/AddressActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/LinearLayout;

    .line 102
    .local v3, "top":Landroid/widget/LinearLayout;
    const v5, 0x7f0c0012

    invoke-virtual {p0, v5}, Lcom/example/m6wmr/AddressActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageView;

    .line 103
    .local v2, "toadd":Landroid/widget/ImageView;
    const v5, 0x7f0c0013

    invoke-virtual {p0, v5}, Lcom/example/m6wmr/AddressActivity;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    .line 104
    .local v4, "tv1":Landroid/widget/TextView;
    iget-object v5, p0, Lcom/example/m6wmr/AddressActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v5}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v5

    const-string v6, "1"

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_0

    .line 105
    const v5, 0x7f070026

    invoke-virtual {v3, v5}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 106
    const v5, 0x7f02001b

    invoke-virtual {v2, v5}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 107
    const v5, -0xd53e87

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setTextColor(I)V

    .line 110
    :cond_0
    new-instance v5, Ldbclass/DBOpenHelper;

    iget-object v6, p0, Lcom/example/m6wmr/AddressActivity;->mcontext:Landroid/content/Context;

    invoke-direct {v5, v6}, Ldbclass/DBOpenHelper;-><init>(Landroid/content/Context;)V

    iput-object v5, p0, Lcom/example/m6wmr/AddressActivity;->helper:Ldbclass/DBOpenHelper;

    .line 111
    iget-object v5, p0, Lcom/example/m6wmr/AddressActivity;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v5}, Ldbclass/DBOpenHelper;->getWritableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v5

    iput-object v5, p0, Lcom/example/m6wmr/AddressActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 112
    new-instance v5, Landroid/content/ContentValues;

    invoke-direct {v5}, Landroid/content/ContentValues;-><init>()V

    iput-object v5, p0, Lcom/example/m6wmr/AddressActivity;->cv:Landroid/content/ContentValues;

    .line 113
    const v5, 0x7f0c00ca

    invoke-virtual {p0, v5}, Lcom/example/m6wmr/AddressActivity;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/LinearLayout;

    iput-object v5, p0, Lcom/example/m6wmr/AddressActivity;->addresslaout:Landroid/widget/LinearLayout;

    .line 114
    new-instance v5, Lcom/example/m6wmr/AddressActivity$1;

    invoke-direct {v5, p0}, Lcom/example/m6wmr/AddressActivity$1;-><init>(Lcom/example/m6wmr/AddressActivity;)V

    iput-object v5, p0, Lcom/example/m6wmr/AddressActivity;->h:Landroid/os/Handler;

    .line 269
    invoke-virtual {p0}, Lcom/example/m6wmr/AddressActivity;->bindbtn()V

    .line 272
    return-void
.end method

.method protected onDestroy()V
    .locals 1

    .prologue
    .line 405
    invoke-super {p0}, Landroid/app/Activity;->onDestroy()V

    .line 406
    iget-object v0, p0, Lcom/example/m6wmr/AddressActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    if-eqz v0, :cond_0

    .line 407
    iget-object v0, p0, Lcom/example/m6wmr/AddressActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    .line 409
    :cond_0
    iget-object v0, p0, Lcom/example/m6wmr/AddressActivity;->cursor:Landroid/database/Cursor;

    if-eqz v0, :cond_1

    .line 410
    iget-object v0, p0, Lcom/example/m6wmr/AddressActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    .line 412
    :cond_1
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 3
    .param p1, "keyCode"    # I
    .param p2, "event"    # Landroid/view/KeyEvent;

    .prologue
    const/4 v2, 0x0

    .line 389
    const/4 v1, 0x4

    if-ne p1, v1, :cond_0

    invoke-virtual {p2}, Landroid/view/KeyEvent;->getRepeatCount()I

    move-result v1

    if-nez v1, :cond_0

    .line 390
    iget v0, p0, Lcom/example/m6wmr/AddressActivity;->goint:I

    .line 391
    .local v0, "checkgo":I
    const/4 v1, 0x1

    if-ne v0, v1, :cond_1

    .line 392
    iput v2, p0, Lcom/example/m6wmr/AddressActivity;->goint:I

    .line 393
    invoke-virtual {p0}, Lcom/example/m6wmr/AddressActivity;->bingdata()V

    .line 400
    .end local v0    # "checkgo":I
    :cond_0
    :goto_0
    return v2

    .line 396
    .restart local v0    # "checkgo":I
    :cond_1
    invoke-virtual {p0}, Lcom/example/m6wmr/AddressActivity;->finish()V

    goto :goto_0
.end method

.method public onStart()V
    .locals 0

    .prologue
    .line 383
    invoke-virtual {p0}, Lcom/example/m6wmr/AddressActivity;->bingdata()V

    .line 384
    invoke-super {p0}, Landroid/app/Activity;->onStart()V

    .line 385
    return-void
.end method
